<template>
    <div>
        <div v-if="code">收到传承{{code}}</div>
        <div v-else>没有传承</div>
    </div>
</template>
<script>
export default {
    data(){
        return{
            code:''
        }
    },
    methods:{

    },
    mounted(){
       console.log(this.$route,'query'); 
        this.code = this.$route.query.data

    }

}
</script>
